﻿th, td {
    border: 1px groove;
    text-align: center;
}

th {
    border-color: black;
}

body {
    background: aliceblue;
}


#root {
    padding: 2rem;
}

footer {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    flex: none;
}
ul, li {
    list-style: none;
}

.body {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: stretch;
}

.header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
    flex: none;
    background: yellowgreen;
}

.icon_lg {
    height: 2rem;
    width: 2rem;
}

/*菜单组件*/
.mainMenu {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
}

    .mainMenu:hover .submenus {
        width: 30rem;
        display: flex;
        position: absolute;
        left: 4rem;
        top: 0;
        background: black;
        color: wheat;
        z-index: 10;
    }
/**/
.submenus {
    display: none;
    justify-content: space-around;
    align-items: flex-start;
    padding: 1rem;
}

    .submenu {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: start;
    }

.menu {
    display: inline-block;
    cursor: pointer;
}



/*首页布局*/
body {
    display: grid;
    grid-template: 'header header' 3rem 'menus pages' auto/4rem;

}

#header{
    grid-area:header;
    background:#02053b;
    color:aqua;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#menus {
    display: flex;
    flex-flow: column nowrap;
}

    #menus > li {
        border-right: 1px aliceblue groove;
        border-bottom: 1px aliceblue groove;
    }

.fauto {
    flex: auto;
}


#pages {
    height: 100%;
    display: flex;
}

    #pages > li {
        flex: none;
    }

        #pages > li > div[name=tab] {
            height: 2rem;
            width: 6rem;
            border-right: 1px aliceblue groove;
            border-bottom: 1px aliceblue groove;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        #pages > li > div[name=page] {
            position: absolute;
            display: none;
            top: 5rem;
            right:0;
            bottom:0;
            left: 4rem;
            padding:0 1.5rem;
        }

        #pages > li:last-child {
            border-right: none;
            flex: auto;
            height: 2rem;
            border-bottom: 1px groove;
        }

    #pages > .active > div[name=tab] {
        border-bottom: none;
    }

    #pages > .active > div[name=page] {
        display: block;
    }
